package com.xteam.xnetworkdisk.sys.service.impl;

import com.xteam.xnetworkdisk.sys.dao.FileDao;
import com.xteam.xnetworkdisk.sys.entity.FileEntity;
import com.xteam.xnetworkdisk.utils.PageUtils;
import com.xteam.xnetworkdisk.utils.Query;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.xteam.xnetworkdisk.sys.dao.FileShareRelationDao;
import com.xteam.xnetworkdisk.sys.entity.FileShareRelationEntity;
import com.xteam.xnetworkdisk.sys.service.FileShareRelationService;

import javax.annotation.Resource;


@Service("fileShareRelationService")
public class FileShareRelationServiceImpl extends ServiceImpl<FileShareRelationDao, FileShareRelationEntity> implements FileShareRelationService {

    @Resource
    private FileDao fileDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FileShareRelationEntity> page = this.page(
                new Query<FileShareRelationEntity>().getPage(params),
                new QueryWrapper<FileShareRelationEntity>()
        );

        return new PageUtils(page);
    }



}